<?php require_once('../../core/import.php');?>
<?php User::Permission('PRODUCT_KEYWORDS_ADD'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <script type="text/javascript" src="../../scripts/import.js"></script>
    <script type="text/javascript" src="../../scripts/components/checkbox/import.checkbox.js"></script>
    <script type="text/javascript" src="../../scripts/components/zebra_table/import.zebra_table.js"></script>
    <script type="text/javascript" src="scripts/list.js"></script>
</head>

<body>
	<table width="70.5%" id="List" border="0" align="center" cellpadding="0" cellspacing="0" class="List">        
    <thead>
    <tr>
        <th width="50%" align="center" valign="middle">关键词</th>
        <th width="29%" align="center" valign="middle">&nbsp;</th>
    </tr>
    </thead>
  	<form id="Form1" name="Form1" method="post" >   
    <tbody>
    <?php
        #获取数据
        $Data=DB::GetData('select ID,Name from product_keywords order by ID asc limit ?,15');
	  foreach($Data['Record'] as $Row)
        {
    ?>
    <tr>
        <td height="30" align="center" valign="middle">
           <input type="text" id="Name_<?php echo $Row['ID'];?>" name="Name_<?php echo $Row['ID'];?>" size="50" class="TextboxAdd" value="<?php echo $Row['Name'];?>" />
        </td>
        <td height="25" align="center" valign="middle">
            <a href="javascript:Edit(<?php echo $Row['ID'];?>);">修改</a>
            <a href="javascript:mconfirm_delete('list.action.delete.php?id=<?php echo $Row['ID'];?>');">删除</a>
        </td>
    </tr>
    <?php
        }
    ?>
    </tbody> 
    <tfoot>
    <tr>
    	 <td height="25" colspan="2" align="left" valign="middle">
    		<table width="98.5%" id="List" align="center" border="0" cellpadding="0" cellspacing="0" class="List">
   		  <tr bgcolor="#CCCCCC" height="30">
     			  <td align="center">
       			 关键词： <input type="text" id="Name_Add" name="Name_Add" size="50" class="TextboxAdd" />
     			  </td>
     			  <td align="left">
       			<span id="NewsKeywordsAdd" class="Cursor_Pointer"><font size="3">添加</font></span>
     			  </td>
  		 </tr>  
   		</table>
    	</td>
    </tr>
    </tfoot>
   	<tfoot>
    <tr>
        <td height="25" colspan="2" align="center" valign="middle">
            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="55%" align="left">
                <?php
                    PagerFactory::Create('Simple')->Display($Data);
                ?>
                </td>
            </tr>
            </table>    
         </td>
	</tr>
    </tfoot>
    </form>
    </table> 
    
</body>
</html>